<%@ Page Title="Candidate Details" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" 
	Inherits="System.Web.Mvc.ViewPage<ETestIT.Core.Candidate>" %>
<%@ Import Namespace="ETestIT.Web.Controllers" %>
<%@ Import Namespace="MvcContrib.FluentHtml"%>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentTitlePlaceHolder" runat="server">
    <h2>Candidate Details</h2>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

<% using (Html.BeginForm()) { %>
		<%= this.TextBox("Candidate.FirstName").Value(ViewData.Model.FirstName).Disabled(true).Label("FirstName:") %>
		<br/>
		
		<%= this.TextBox("Candidate.Surename").Value(ViewData.Model.Surename).Disabled(true).Label("Surename:")%>
		<br/>
		
		<%= this.TextBox("Candidate.Email").Value(ViewData.Model.Email).Disabled(true).Label("Email:")%>
		<br/>
		
		<%= this.TextBox("Candidate.Phone").Value(ViewData.Model.Phone).Disabled(true).Label("Phone:")%>
		<br/>
		
		<%= this.TextBox("Candidate.Category").Value(ViewData.Model.Category).Disabled(true).Label("Category:")%>
		<br/>
		
		<%= this.TextBox("Candidate.ProfileTitle").Value(ViewData.Model.ProfileTitle.Name).Disabled(true).Label("Profile Title:")%>
		<br/>
		
		<%= Html.Button("btnCancel", "Cancel", HtmlButtonType.Button, 
		    "window.location.href = '" + Html.BuildUrlFromExpression<CandidatesController>(c => c.Index(null)) + "';") %>
    <br/>
<% }%>
</asp:Content>
